<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div th:replace="header::common"></div>
    <style>
        .center {
            width: 1000px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<form class="center" action="/rent/add" method="post">
    <div class="form-group">
        <label>车牌</label>
        <input type="text" class="form-control" name="carp">
    </div>
    <div class="form-group">
        <label>型号</label>
        <select class="form-control" name="carid">
            <option th:each="carType:${list}" th:value="${carType.id}" th:text="${carType.name}">奔驰</option>
        </select>
    </div>
    <div class="form-group">
        <label>租用人</label>
        <input type="text" class="form-control" name="name">
    </div>
    <div class="form-group">
        <label>租用日期</label>
        <input type="text" class="form-control" name="start">
    </div>
    <div class="form-group">
        <label>结束日期</label>
        <input type="text" class="form-control" name="endl">
    </div>
    <div class="form-group">
        <label>支付金额</label>
        <input type="text" class="form-control" name="post">
    </div>
    <div class="form-group">
        <label>状态</label>
        <input type="radio" name="status" value="1" />已付款
        <input type="radio" name="status" value="2" checked=""/>未付款
    </div>
    <input class="btn btn-primary" type="submit" value="添加">
</form>
</body>
</html>